module kongzhi_disp_sfm(
input        k1,
input [7:0]  sec,//1
input [7:0]  min,
input [7:0]  hour,

input [7:0]  sec_set,//3
input [7:0]  min_set,
input [7:0]  hour_set,

output reg[7:0] cout2,//hour_year
output reg[7:0] cout1,//min_mon
output reg[7:0] cout0//sec_day
);
always @({k1,sec,min,hour,sec_set,min_set,hour_set})
case (k1)
1:begin //gong_zuo
	  {cout2,cout1,cout0}={hour,min,sec};
    end
0:begin 
	  {cout2,cout1,cout0}={hour_set,min_set,sec_set};
	end
default:begin //gong_zuo
	      {cout2,cout1,cout0}={hour,min,sec};
        end
endcase
endmodule 